#ifndef glPict_h__
#define glPict_h__

#include "./glTypes.h"
#include "./glObject.h"

namespace GLES
{
    class Pict : public Object
    {
		GetProperty(Size,SizeI,_size);
		SetGetProperty(HasPremultipliedAlpha,Bool, _bHasPremultipliedAlpha);
		SetGetProperty(BitsPerComponent,Uns8,_bitsPerComponent);
		SetGetProperty(HasAlpha,Bool,_hasAlpha);
	public:
		Pict():_tex(0){}
		~Pict(){releaseTexture();}
	public:
		Bool createFromPVR(char* name);
		Bool createFromBuffer(SizeI& size,Uns32 format,Uns8* buff = NULL);
		Void releaseTexture();
	public:
		GLint  getTexture();
		SizeI  setDesiredSize(SizeI size);
    private:
		GLuint _tex;
    };
}

#endif 